<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>BT自动化兼容性测试报告  --测试手机：华为5x</title>
    <meta name="generator" content="HTMLTestRunner 0.8.2"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    
<style type="text/css" media="screen">
body        { font-family: verdana, arial, helvetica, sans-serif; font-size: 80%; }
table       { font-size: 100%; }
pre         { }

/* -- heading ---------------------------------------------------------------------- */
h1 {
	font-size: 16pt;
	color: gray;
}
.heading {
    margin-top: 0ex;
    margin-bottom: 1ex;
}

.heading .attribute {
    margin-top: 1ex;
    margin-bottom: 0;
}

.heading .description {
    margin-top: 4ex;
    margin-bottom: 6ex;
}

/* -- css div popup ------------------------------------------------------------------------ */
a.popup_link {
}

a.popup_link:hover {
    color: red;
}

.popup_window {
    display: none;
    position: relative;
    left: 0px;
    top: 0px;
    /*border: solid #627173 1px; */
    padding: 10px;
    background-color: #E6E6D6;
    font-family: "Lucida Console", "Courier New", Courier, monospace;
    text-align: left;
    font-size: 8pt;
    width: 500px;
}

}
/* -- report ------------------------------------------------------------------------ */
#show_detail_line {
    margin-top: 3ex;
    margin-bottom: 1ex;
}
#result_table {
    width: 80%;
    border-collapse: collapse;
    border: 1px solid #777;
}
#header_row {
    font-weight: bold;
    color: white;
    background-color: #777;
}
#result_table td {
    border: 1px solid #777;
    padding: 2px;
}
#total_row  { font-weight: bold; }
.passClass  { background-color: #6c6; }
.failClass  { background-color: #c60; }
.errorClass { background-color: #c00; }
.passCase   { color: #6c6; }
.failCase   { color: #c60; font-weight: bold; }
.errorCase  { color: #c00; font-weight: bold; }
.hiddenRow  { display: none; }
.testcase   { margin-left: 2em; }


/* -- ending ---------------------------------------------------------------------- */
#ending {
}

</style>

</head>
<body>
<script language="javascript" type="text/javascript"><!--
output_list = Array();

/* level - 0:Summary; 1:Failed; 2:All */
function showCase(level) {
    trs = document.getElementsByTagName("tr");
    for (var i = 0; i < trs.length; i++) {
        tr = trs[i];
        id = tr.id;
        if (id.substr(0,2) == 'ft') {
            if (level < 1) {
                tr.className = 'hiddenRow';
            }
            else {
                tr.className = '';
            }
        }
        if (id.substr(0,2) == 'pt') {
            if (level > 1) {
                tr.className = '';
            }
            else {
                tr.className = 'hiddenRow';
            }
        }
    }
}


function showClassDetail(cid, count) {
    var id_list = Array(count);
    var toHide = 1;
    for (var i = 0; i < count; i++) {
        tid0 = 't' + cid.substr(1) + '.' + (i+1);
        tid = 'f' + tid0;
        tr = document.getElementById(tid);
        if (!tr) {
            tid = 'p' + tid0;
            tr = document.getElementById(tid);
        }
        id_list[i] = tid;
        if (tr.className) {
            toHide = 0;
        }
    }
    for (var i = 0; i < count; i++) {
        tid = id_list[i];
        if (toHide) {
            document.getElementById('div_'+tid).style.display = 'none'
            document.getElementById(tid).className = 'hiddenRow';
        }
        else {
            document.getElementById(tid).className = '';
        }
    }
}


function showTestDetail(div_id){
    var details_div = document.getElementById(div_id)
    var displayState = details_div.style.display
    // alert(displayState)
    if (displayState != 'block' ) {
        displayState = 'block'
        details_div.style.display = 'block'
    }
    else {
        details_div.style.display = 'none'
    }
}


function html_escape(s) {
    s = s.replace(/&/g,'&amp;');
    s = s.replace(/</g,'&lt;');
    s = s.replace(/>/g,'&gt;');
    return s;
}

/* obsoleted by detail in <div>
function showOutput(id, name) {
    var w = window.open("", //url
                    name,
                    "resizable,scrollbars,status,width=800,height=450");
    d = w.document;
    d.write("<pre>");
    d.write(html_escape(output_list[id]));
    d.write("\n");
    d.write("<a href='javascript:window.close()'>close</a>\n");
    d.write("</pre>\n");
    d.close();
}
*/
--></script>

<div class='heading'>
<h1>BT自动化兼容性测试报告  --测试手机：华为5x</h1>
<p class='attribute'><strong>Start Time:</strong> 2016-09-14 19:42:23</p>
<p class='attribute'><strong>Duration:</strong> 2:35:53.755000</p>
<p class='attribute'><strong>Status:</strong> Failure 5 Error 4</p>

<p class='description'>用例执行情况请查看下图所示：绿色代表PASS,Fail代表出现Bug，Error代表代码中途挂掉(分别点击PASS,Fail，Error可以查看具体测试内容)。测试环境：APP:V0.2.2,BLE:V0.2.2 ：</p>
</div>



<p id='show_detail_line'>Show
<a href='javascript:showCase(0)'>Summary</a>
<a href='javascript:showCase(1)'>Failed</a>
<a href='javascript:showCase(2)'>All</a>
</p>
<table id='result_table'>
<colgroup>
<col align='left' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
</colgroup>
<tr id='header_row'>
    <td>Test Group/Test case</td>
    <td>Count</td>
    <td>Pass</td>
    <td>Fail</td>
    <td>Error</td>
    <td>View</td>
</tr>

<tr class='failClass'>
    <td>testcase.huawei_5x.bluetooth_off_connected.Test</td>
    <td>1</td>
    <td>0</td>
    <td>1</td>
    <td>0</td>
    <td><a href="javascript:showClassDetail('c1',1)">Detail</a></td>
</tr>

<tr id='ft1.1' class='none'>
    <td class='failCase'><div class='testcase'>test_play: 测试步骤：连接成功之后，关掉手机端的蓝牙开关，然后再次进入app，观察1分钟内是否可以自动回连，重复操作100次</div></td>
    <td colspan='5' align='center'>

    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_ft1.1')" >
        fail</a>

    <div id='div_ft1.1' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_ft1.1').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
ft1.1: Wed Sep 14 19:42:23 2016 app测试开始，正在开始启动app
Wed Sep 14 19:42:23 2016 把手机端蓝牙关掉，然后再打开，观察是否可以正常回连
Wed Sep 14 19:42:31 2016 app连接BLE中，70秒再做判定。。。
Wed Sep 14 19:43:41 2016 经过确认，已经进入到主菜单页面
Traceback (most recent call last):
  File "E:\eclipse\huawei_rader\all_mobile\testcase\huawei_5x\bluetooth_off_connected.py", line 106, in test_play
    self.fail("发现连接断开现象，请确认问题所在")
AssertionError: 发现连接断开现象，请确认问题所在


        </pre>
    </div>
    <!--css div popup end-->

    </td>
</tr>

<tr class='errorClass'>
    <td>testcase.huawei_5x.click_jinghuaqi_1000times.Test</td>
    <td>1</td>
    <td>0</td>
    <td>0</td>
    <td>1</td>
    <td><a href="javascript:showClassDetail('c2',1)">Detail</a></td>
</tr>

<tr id='ft2.1' class='none'>
    <td class='errorCase'><div class='testcase'>test_play: 测试步骤：进入到遥控器页面，反复点击空气净化器的power按键200次  预期结果：不会出现蓝牙断开现象</div></td>
    <td colspan='5' align='center'>

    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_ft2.1')" >
        error</a>

    <div id='div_ft2.1' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_ft2.1').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
ft2.1: Wed Sep 14 22:03:22 2016 app测试开始，正在开始启动app
Wed Sep 14 22:03:22 2016 进入到净化器页面，反复点击power按键200次，观察小雷达是否会出现死机现象
Wed Sep 14 22:03:32 2016 app连接BLE中，70秒再做判定。。。
Wed Sep 14 22:04:47 2016 点击：智能遥控按键
Wed Sep 14 22:04:50 2016 选择空气净化器
Traceback (most recent call last):
  File "E:\eclipse\huawei_rader\all_mobile\testcase\huawei_5x\click_jinghuaqi_1000times.py", line 76, in test_play
    self.driver.find_element_by_xpath(common.config.click_jinghuaqi_key()).click()
  File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 258, in find_element_by_xpath
    return self.find_element(by=By.XPATH, value=xpath)
  File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 712, in find_element
    {'using': by, 'value': value})['value']
  File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 201, in execute
    self.error_handler.check_response(response)
  File "C:\Python27\lib\site-packages\appium\webdriver\errorhandler.py", line 29, in check_response
    raise wde
NoSuchElementException: Message: An element could not be located on the page using the given search parameters.



        </pre>
    </div>
    <!--css div popup end-->

    </td>
</tr>

<tr class='errorClass'>
    <td>testcase.huawei_5x.click_kongtiao_1000times.Test</td>
    <td>1</td>
    <td>0</td>
    <td>0</td>
    <td>1</td>
    <td><a href="javascript:showClassDetail('c3',1)">Detail</a></td>
</tr>

<tr id='ft3.1' class='none'>
    <td class='errorCase'><div class='testcase'>test_play: 测试步骤：进入到遥控器页面，反复点击空调的power按键200次  预期结果：不会出现蓝牙断开现象</div></td>
    <td colspan='5' align='center'>

    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_ft3.1')" >
        error</a>

    <div id='div_ft3.1' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_ft3.1').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
ft3.1: Wed Sep 14 22:05:09 2016 app测试开始，正在开始启动app
Wed Sep 14 22:05:09 2016 进入到空调页面，反复点击power按键200次，观察小雷达是否会出现死机现象
Wed Sep 14 22:05:19 2016 app连接BLE中，70秒再做判定。。。
Wed Sep 14 22:06:34 2016 点击：智能遥控按键
Wed Sep 14 22:06:35 2016 选择空调
Traceback (most recent call last):
  File "E:\eclipse\huawei_rader\all_mobile\testcase\huawei_5x\click_kongtiao_1000times.py", line 76, in test_play
    self.driver.find_element_by_id(common.config.click_kongtiao_power_key()).click()
  File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 234, in find_element_by_id
    return self.find_element(by=By.ID, value=id_)
  File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 712, in find_element
    {'using': by, 'value': value})['value']
  File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 201, in execute
    self.error_handler.check_response(response)
  File "C:\Python27\lib\site-packages\appium\webdriver\errorhandler.py", line 29, in check_response
    raise wde
NoSuchElementException: Message: An element could not be located on the page using the given search parameters.



        </pre>
    </div>
    <!--css div popup end-->

    </td>
</tr>

<tr class='errorClass'>
    <td>testcase.huawei_5x.click_STB_1000times.Test</td>
    <td>1</td>
    <td>0</td>
    <td>0</td>
    <td>1</td>
    <td><a href="javascript:showClassDetail('c4',1)">Detail</a></td>
</tr>

<tr id='ft4.1' class='none'>
    <td class='errorCase'><div class='testcase'>test_play: 测试步骤：进入到遥控器页面，反复点击机顶盒的power按键200次  预期结果：不会出现蓝牙断开现象</div></td>
    <td colspan='5' align='center'>

    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_ft4.1')" >
        error</a>

    <div id='div_ft4.1' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_ft4.1').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
ft4.1: Wed Sep 14 22:06:54 2016 app测试开始，正在开始启动app
Wed Sep 14 22:06:54 2016 进入到机顶盒页面，反复点击power按键200次，观察小雷达是否会出现死机现象
Wed Sep 14 22:07:04 2016 app连接BLE中，70秒再做判定。。。
Wed Sep 14 22:08:19 2016 点击：智能遥控按键
Wed Sep 14 22:08:23 2016 选择机顶盒
Traceback (most recent call last):
  File "E:\eclipse\huawei_rader\all_mobile\testcase\huawei_5x\click_STB_1000times.py", line 76, in test_play
    self.driver.find_element_by_id(common.config.click_power_key()).click()
  File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 234, in find_element_by_id
    return self.find_element(by=By.ID, value=id_)
  File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 712, in find_element
    {'using': by, 'value': value})['value']
  File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 201, in execute
    self.error_handler.check_response(response)
  File "C:\Python27\lib\site-packages\appium\webdriver\errorhandler.py", line 29, in check_response
    raise wde
NoSuchElementException: Message: An element could not be located on the page using the given search parameters.



        </pre>
    </div>
    <!--css div popup end-->

    </td>
</tr>

<tr class='errorClass'>
    <td>testcase.huawei_5x.click_tv_1000times.Test</td>
    <td>1</td>
    <td>0</td>
    <td>0</td>
    <td>1</td>
    <td><a href="javascript:showClassDetail('c5',1)">Detail</a></td>
</tr>

<tr id='ft5.1' class='none'>
    <td class='errorCase'><div class='testcase'>test_play: 测试步骤：进入到遥控器页面，反复点击电视的power按键200次  预期结果：不会出现蓝牙断开现象</div></td>
    <td colspan='5' align='center'>

    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_ft5.1')" >
        error</a>

    <div id='div_ft5.1' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_ft5.1').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
ft5.1: Wed Sep 14 22:08:42 2016 app测试开始，正在开始启动app
Wed Sep 14 22:08:42 2016 进入到电视页面，反复点击power按键200次，观察小雷达是否会出现死机现象
Wed Sep 14 22:08:52 2016 app连接BLE中，70秒再做判定。。。
Wed Sep 14 22:10:07 2016 点击：智能遥控按键
Wed Sep 14 22:10:11 2016 选择电视
Traceback (most recent call last):
  File "E:\eclipse\huawei_rader\all_mobile\testcase\huawei_5x\click_tv_1000times.py", line 76, in test_play
    self.driver.find_element_by_id(common.config.click_tv_power_key()).click()
  File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 234, in find_element_by_id
    return self.find_element(by=By.ID, value=id_)
  File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 712, in find_element
    {'using': by, 'value': value})['value']
  File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 201, in execute
    self.error_handler.check_response(response)
  File "C:\Python27\lib\site-packages\appium\webdriver\errorhandler.py", line 29, in check_response
    raise wde
NoSuchElementException: Message: An element could not be located on the page using the given search parameters.



        </pre>
    </div>
    <!--css div popup end-->

    </td>
</tr>

<tr class='failClass'>
    <td>testcase.huawei_5x.connect_manytimes.Test</td>
    <td>1</td>
    <td>0</td>
    <td>1</td>
    <td>0</td>
    <td><a href="javascript:showClassDetail('c6',1)">Detail</a></td>
</tr>

<tr id='ft6.1' class='none'>
    <td class='failCase'><div class='testcase'>test_play: 测试步骤：打开app，检测是否可以连接上，然后close掉app，重新200次  期待结果：进入之后不会出现无法连接的提示</div></td>
    <td colspan='5' align='center'>

    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_ft6.1')" >
        fail</a>

    <div id='div_ft6.1' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_ft6.1').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
ft6.1: Wed Sep 14 22:10:30 2016 app测试开始，正在开始启动app
Wed Sep 14 22:10:40 2016 app连接BLE中，延时20秒。。。
Wed Sep 14 22:11:28 2016 发现蓝牙断开，发生在第：1次
Traceback (most recent call last):
  File "E:\eclipse\huawei_rader\all_mobile\testcase\huawei_5x\connect_manytimes.py", line 81, in test_play
    self.fail("发现连接断开现象，请确认问题所在")
AssertionError: 发现连接断开现象，请确认问题所在


        </pre>
    </div>
    <!--css div popup end-->

    </td>
</tr>

<tr class='failClass'>
    <td>testcase.huawei_5x.detect_disconnect.Test</td>
    <td>1</td>
    <td>0</td>
    <td>1</td>
    <td>0</td>
    <td><a href="javascript:showClassDetail('c7',1)">Detail</a></td>
</tr>

<tr id='ft7.1' class='none'>
    <td class='failCase'><div class='testcase'>test_play: 测试步骤：进入到小雷达操作主界面，每过一分钟往下拉刷新页面，一共重复200次  测试结果：如果检测到有BLE连接断开的标志，则判断连接失败</div></td>
    <td colspan='5' align='center'>

    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_ft7.1')" >
        fail</a>

    <div id='div_ft7.1' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_ft7.1').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
ft7.1: Wed Sep 14 22:11:42 2016 app测试开始，正在开始启动app
Wed Sep 14 22:11:42 2016 测试长时间蓝牙是否会断开
Wed Sep 14 22:11:57 2016 app连接BLE中，70秒再做判定。。。
Wed Sep 14 22:13:07 2016 经过确认，已经进入到主菜单页面
Wed Sep 14 22:14:00 2016 发现蓝牙断开，发生在第：1分钟
Traceback (most recent call last):
  File "E:\eclipse\huawei_rader\all_mobile\testcase\huawei_5x\detect_disconnect.py", line 96, in test_play
    self.fail("发现连接断开现象，请确认问题所在")
AssertionError: 发现连接断开现象，请确认问题所在


        </pre>
    </div>
    <!--css div popup end-->

    </td>
</tr>

<tr class='failClass'>
    <td>testcase.huawei_5x.lock_unlock.Test</td>
    <td>1</td>
    <td>0</td>
    <td>1</td>
    <td>0</td>
    <td><a href="javascript:showClassDetail('c8',1)">Detail</a></td>
</tr>

<tr id='ft8.1' class='none'>
    <td class='failCase'><div class='testcase'>test_play: 测试步骤：进入到TVOC界面，锁屏，然后按power恢复，重复500次   测试结果：观察：   1.可以搜索到TVOC页面的某个标志</div></td>
    <td colspan='5' align='center'>

    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_ft8.1')" >
        fail</a>

    <div id='div_ft8.1' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_ft8.1').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
ft8.1: Wed Sep 14 22:14:14 2016 app测试开始，正在开始启动app
Wed Sep 14 22:14:14 2016 进行锁屏和解锁屏幕测试
Wed Sep 14 22:14:23 2016 app连接BLE中，70秒再做判定。。。
Wed Sep 14 22:15:33 2016 经过确认，已经进入到主菜单页面
Wed Sep 14 22:15:38 2016 锁屏五秒
Wed Sep 14 22:15:43 2016 解锁屏幕
Traceback (most recent call last):
  File "E:\eclipse\huawei_rader\all_mobile\testcase\huawei_5x\lock_unlock.py", line 93, in test_play
    self.fail("经过确认，不可以正常返回到TVOC主材带界面")
AssertionError: 经过确认，不可以正常返回到TVOC主材带界面


        </pre>
    </div>
    <!--css div popup end-->

    </td>
</tr>

<tr class='failClass'>
    <td>testcase.huawei_5x.temperature_error.Test</td>
    <td>1</td>
    <td>0</td>
    <td>1</td>
    <td>0</td>
    <td><a href="javascript:showClassDetail('c9',1)">Detail</a></td>
</tr>

<tr id='ft9.1' class='none'>
    <td class='failCase'><div class='testcase'>test_play: 测试步骤：反复数据，然后获取温度值，观察是否出现99度异常现象 ，刷新200次，每次间隔20秒</div></td>
    <td colspan='5' align='center'>

    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_ft9.1')" >
        fail</a>

    <div id='div_ft9.1' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_ft9.1').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
ft9.1: Wed Sep 14 22:16:11 2016 app测试开始，正在开始启动app
Wed Sep 14 22:16:11 2016 进行温度是否会变成异常值测试
Wed Sep 14 22:16:24 2016 app连接BLE中，70秒再做判定。。。
Wed Sep 14 22:17:34 2016 经过确认，已经进入到主菜单页面
Wed Sep 14 22:18:01 2016 当前获取到温度值为：0度
Traceback (most recent call last):
  File "E:\eclipse\huawei_rader\all_mobile\testcase\huawei_5x\temperature_error.py", line 92, in test_play
    self.fail("检测到严重和当前环境不一致的值出现")
AssertionError: 检测到严重和当前环境不一致的值出现


        </pre>
    </div>
    <!--css div popup end-->

    </td>
</tr>

<tr id='total_row'>
    <td>Total</td>
    <td>9</td>
    <td>0</td>
    <td>5</td>
    <td>4</td>
    <td>&nbsp;</td>
</tr>
</table>

<div id='ending'>&nbsp;</div>

</body>
</html>
